package com.yishun.springboot.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.yishun.springboot.service.RoleService;

@RestController
@RequestMapping("/Role")
public class RoleController {

	@Resource
	RoleService roleService;

	/**
	 * 查询所有权限出来
	 * 
	 * @return
	 */
	@RequestMapping("/getRolesAll")
	public String getRolesAll(@RequestBody JSONObject jsonObject) {
		return roleService.getRolesAll(jsonObject).toJSONString();

	}
}
